cc_binary(
    name = "write_bin.so",
    srcs = glob(["include/*.h", "src/write_bin.cpp"]),
    copts = ["-Iinclude"],
    linkopts = ["-fPIC"],
    deps = [
        "@tcmcp//:tcmcp",
    ],
    linkshared = 1,
)

# https://docs.bazel.build/versions/master/be/c-cpp.html#cc_binary
cc_binary(
    name = "write_bin",
    srcs = glob(["include/*.h", "src/*.cpp"]),
    copts = ["-Iinclude"],
    deps = [
        "@tcmcp//:tcmcp",
    ],
)